<?php 

/**
 * 地址
 *
 * @author wangx
 * @param array  $params
 * @param object $smarty
 * @return string
 */
function smarty_function_area ($params, &$smarty) 
{ 
    if ($params['id'] && $params['flag']) {
        $dao = B::i()->mode->dao->area;
        $retval = $dao->get($params['id'], $params['flag'], $params['s']);
        return $retval; 
    }
} 


?> 
